package com.eastelsoft.smartiot.bssserver.service;

import com.eastelsoft.smartiot.bssserver.domain.TCmAppAuthorize;
import com.eastelsoft.smartiot.bssserver.domain.TCmUserAccount;

public interface TAppAuthorizeService {
    /**
     * 保存授权信息
     * @param tuser
     * @return
     */
     void saveInfo(TCmUserAccount tuser, String appId, String scope);

    /**
     * 查询授权信息
     * @param appId
     * @param userId
     * @return
     */
    TCmAppAuthorize getByAppIDAnduserID(String appId, String userId);

    /**
     * 根据openId查询授权信息
     * @param openId
     * @return
     */
    TCmAppAuthorize findByOpenId(String openId);
}
